<pre>
<?php
$code_array = array("&aacute;" => "\u00e1", "&eacute;" => "\u00e9", "&iacute;" => "\u00ed", "&oacute;" => "\u00f3", "&uacute;" => "\u00fa", 
					"&Aacute;" => "\u00c1", "&Eacute;" => "\u00c9", "&Iacute;" => "\u00cd", "&Oacute;" => "\u00d3", "&Uacute;" => "\u00da", 
					"&Ntilde;" => "\u00d1", "&ntilde;" => "\u00f1", "&iquest;" => "\u00bf", "&iexcl;" => "\u00a1");
$d = "á, é, í, ó, ú, Á, É, Í, Ó, Ú, Ñ, ñ, ismael, gonzalez, geórge, ¿, ¡";
$json = json_encode($d);

foreach($code_array as $a => $b){
	echo "<br> $a => $b";
	$json = str_replace($b, $a, $json);	
	if(strpos($json, $b)){
		echo "<br> located! $a";
	}
}

var_dump($json);

//$fag = strstr($json, "\u00cd");
//$fag = str_replace("\u00e1", "&aacute;", $json);
//var_dump($fag);
/*
$json = '{"lists":[{"name":"masmedio_favoritos","member_count":24,"slug":"masmedio-favoritos","full_name":"@masmedio\/masmedio-favoritos","description":"Son las cuentas favoritas de masmedio","mode":"public","user":{"contributors_enabled":false,"protected":false,"location":"Hermosillo, Sonora, Mexico","default_profile_image":false,"friends_count":1912,"profile_background_color":"0f4242","profile_image_url_https":"https:\/\/si0.twimg.com\/profile_images\/1639026731\/logo_normal.jpg","name":"MasMedio","profile_background_tile":true,"profile_background_image_url_https":"https:\/\/si0.twimg.com\/profile_background_images\/364013732\/logo.jpg","favourites_count":0,"followers_count":808,"url":"http:\/\/www.masmedio.com\/","profile_image_url":"http:\/\/a0.twimg.com\/profile_images\/1639026731\/logo_normal.jpg","is_translator":false,"show_all_inline_media":false,"utc_offset":-25200,"profile_sidebar_fill_color":"56ad83","description":"","lang":"es","time_zone":"Arizona","profile_sidebar_border_color":"0e6fb0","id_str":"131915787","listed_count":23,"geo_enabled":false,"created_at":"Sun Apr 11 18:52:19 +0000 2010","screen_name":"masmedio","verified":false,"profile_use_background_image":true,"default_profile":false,"notifications":false,"profile_text_color":"050505","follow_request_sent":false,"statuses_count":14826,"profile_background_image_url":"http:\/\/a0.twimg.com\/profile_background_images\/364013732\/logo.jpg","id":131915787,"following":false,"profile_link_color":"d43d0f"},"uri":"\/masmedio\/masmedio-favoritos","subscriber_count":0,"id_str":"55130664","created_at":"Thu Sep 22 03:40:39 +0000 2011","id":55130664,"following":false}], "next_cursor":0, "previous_cursor":0, "next_cursor_str":"0", "previous_cursor_str":"0"}';
$a = 'ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûýýþÿŔŕ';
$b = 'aÁaaaaaceÉeeiÍiidÑoÓoooouÚuuybsaáaaaaaceéeeiíiidñoóoooouúuyybyRr';
$string = json_decode($json);
$string = utf8_decode($string);
$string = strtr($string, utf8_decode($a), $b);
//$derp = json_decode(utf8_decode($json));
print_r($string);

$c = htmlentities("á, é, í, ó, ú, Á, É, Í, Ó, Ú, Ñ, ñ",ENT_COMPAT, 'UTF-8');
$d = "á, é, í, ó, ú, Á, É, Í, Ó, Ú, Ñ, ñ";
var_dump(json_encode($d));
var_dump($c);
$json = json_encode($c);
var_dump($json);
$herp = utf8_decode($json);
var_dump($herp);
$derp = json_decode($herp);
var_dump($derp);
*/
//$url = 'https://api.twitter.com/1/lists/statuses.json?slug=masmedio-favoritos&owner_screen_name=masmedio&page=1&include_entities=true&per_page=2';
$url = 'https://api.twitter.com/1/lists/statuses.json?owner_screen_name=masmedio&slug=masmedio-favoritos';

$ch = curl_init(); 
curl_setopt($ch, CURLOPT_URL, $url);
//curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$response = curl_exec ($ch);  
curl_close($ch);  

foreach($code_array as $a => $b){
	$response = str_replace($b, $a, $response);	
}

$arrayTweets = json_decode($response);

/*echo "arrayTweets<br>";
print_r($arrayTweets);
*/
$arrList = array();

foreach($arrayTweets as $tweet){
	$arrTweet = array(
		'userName' => $tweet->user->screen_name,
		'userPic'  => $tweet->user->profile_image_url,
		'userText' => html_entity_decode($tweet->text)
	);
	//array_push($arrTweet,   $tweet->text);
	array_push($arrList, $arrTweet);
}
echo "arrList<br>";
print_r($arrList);
